home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / dlbox_2 / mouse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-27  |  1.6 KB  |  38 lines

  1. #if !defined(__mouse_h)
  2. #define __mouse_h
  3. typedef struct {  int x; int y;} mouse_coords;
  4. class mouse_class {
  5.     public:
  6.     mouse_class();
  7.     ~mouse_class();
  8.     void mousedriver(unsigned int*m1,unsigned int*m2,unsigned int*m3,
  9.              unsigned int*m4,unsigned int*m5);               
  10.     int ready(); //returns t/f
  11.     int inbox(unsigned int  x1,unsigned int  y1,unsigned int  x2,unsigned int  y2); //returns t/f
  12.     void show();
  13.     void hide();
  14.     void place(unsigned int  xpos,unsigned int  ypos);
  15.     void status(int  *leftbut, int  *rightbut,
  16.               unsigned int  *xpos,unsigned int  *ypos);
  17.     void buttonrelease(unsigned int  * button,unsigned int  *buttonstatus,unsigned int  * releases,
  18.                unsigned int  *xpos,unsigned int  *ypos);
  19.     void buttons(unsigned int  *button,unsigned int  *buttonstatus,unsigned int  *presses,
  20.               unsigned int  *xpos,unsigned int  *ypos);
  21.     void setbounds(unsigned int  xmin,unsigned int  xmax,unsigned int  ymin,unsigned int  ymax);
  22.     void mickeys(unsigned int  * xmickeys,unsigned int  * ymickeys);
  23.     void speed(unsigned int  xspeed,unsigned int  yspeed);
  24.     void page(unsigned int  pagesel);
  25.     int  mreset();
  26.     int  rightbuttondown();
  27.     int  leftbuttondown();
  28.     unsigned int   posy();
  29.     unsigned int   posx();
  30.     int  vposx();
  31.     int  vposy();
  32.     void get_press_coords();
  33.     int leftbuttonpressed(); //detects if left button has been pressed or not
  34.     int leftx; //holds x position at last left button click
  35.     int lefty; //holds y position at last left button click
  36.     };
  37. #endif
  38.